package com.bus.dao;

import com.bus.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsDao {
    List<Goods> selectAllGoods(Goods goods);

    List<Goods> selectAllById(String providerName);

    List<Goods> selectPrice(String goodsName);

    int insertGoods(Goods goods);

    Goods getGoodsById(Integer goodsId);

    int updateGoodsById(Goods goods);

    int deleteGoodsById(Integer goodsId);

    void deleteBatchByIds(List<Integer> ids);

    List<Goods> getGoodsByProviderId(Integer providerId);

    List<Goods> selectGoods();

    int updateNum(@Param("goodsId") Integer goodsId, @Param("num") Integer num);
}
